import request from "@/utils/request";

//查询员工模板
export function getList(query) {
  return request({
    url: "/admin/smsTemplate/list",
    method: "get",
    params: query,
  });
}

//添加短信模板
export function addSms(data) {
    return request({
        url: "/admin/smsTemplate/add",
        method: 'post',
        data
    })
}

//修改短信模板
export function editSms(data) {
    return request({
        url: "/admin/smsTemplate/edit",
        method: 'post',
        data
    })
}

//删除短信模板
export function delSms(ids) {
    return request({
        url: `/admin/smsTemplate/${ids}`,
        method: 'delete'
    })
}